package com.service.impl;


import com.bean.Role;
import com.bean.User;
import com.dao.RoleMapper;
import com.service.RoleService;


import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author Samsara
* @description 针对表【role】的数据库操作Service实现
* @createDate 2023-01-18 03:30:53
*/
@Service
public class RoleServiceImpl implements RoleService {
    @Resource
    private RoleMapper roleMapper;

    @Override
    public Integer insertBatch(List<Role> roleList) {
        return roleMapper.insertBatch(roleList);
    }

    @Override
    public Integer updateBatch(List<Role> roleList) {
        return roleMapper.updateBatch(roleList);
    }

    @Override
    public Integer deleteBatch(List<Role> roleList) {
        return roleMapper.deleteBatch(roleList);
    }

    @Override
    public List<Role> selectRoleList(List<Role> roleList, Integer start, Integer end) {
        return roleMapper.selectRoleList(roleList,start,end);
    }

    @Override
    public List<Role> selectRoleListAndUserList(List<Role> roleList, Integer start, Integer end) {
        return roleMapper.selectRoleListAndUserList(roleList,start,end);
    }
}
